|
SET MATRIX HEIGHT
This command will set the individual height of a point within the matrix.
SET MATRIX HEIGHT Matrix Number, TileX, TileZ, Height
Matrix Number
Integer
The matrix number
TileX
Integer
The x position
TileZ
Integer
The y position
Height
Float
The height
This command does not return a value.
To raise a whole grid square you would need to raise four points, one from each corner of the square. If you set points x=0 z=0, x=0 z=1, x=1 z=0 and x=1 z=1 to a value of 10, you would raise the near left square upwards by ten units. The matrix number and tile reference values should be integer values. The height value should be a real number.
ink rgb(0,255,0),0
box 1,1,101,101
get image 1,0,0,101,101
position camera 0,300,0
autocam off
make matrix 1,1000,1000,25,25
prepare matrix texture 1,1,1,1
position matrix 1,0,0,0
set matrix height 1,10,10,200
update matrix 1
while inkey$()<>"x"
x#=x#+mousemovey()
y#=y#+mousemovex()
rotate camera x#,y#,0
if mouseclick()=1 then move camera 1
if mouseclick()=2 then move camera -1
if returnkey()=1 then set matrix height 1,x#,y#,200
update matrix 1
endwhile
if matrix exist(1)=1 then delete matrix 1
end
MATRIX Commands Menu
Index
|